package com.woniuxy.dudugua.controller;


import com.woniuxy.dudugua.service.DataStatisticsService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.woniuxy.dudugua.util.Result;

import javax.annotation.Resource;

/**
 * @author JadeFang
 * @Deprecated 数据统计
 */

@RestController
public class DataStatisticsController {

    @Resource
    private DataStatisticsService  dataStatisticsService;
    //用户数量的查询
    @RequestMapping("/selectUserNumber")
    public  Result  selectByUserNumber()throws  Exception{

        return   new Result("200","success",dataStatisticsService.selectByUserNumber(),null);
    }
    //商家数量的查询
    @RequestMapping("selectPersonNumber")
    public  Result   selectByPersonNumber() throws Exception{

        return   new Result("200","success",dataStatisticsService.selectByPersonNumber(),null);
    }

    //店铺出售商品的种类数量
    @RequestMapping("selectProductStoreId")
    public  Result  selectByProductStoreId()  throws  Exception{
        return  new Result("200","success",null,dataStatisticsService.selectByProductStoreId());
    }

    //货品数量
    @RequestMapping("selectProductSkuNumber")
    public  Result  selectByProductSkuNumber()  throws  Exception{
        return   new Result("200","success",null,dataStatisticsService.selectByProductSkuNumber());
    }

    //订单数量
    @RequestMapping("selectOrderNumber")
    public  Result selectByOrderNumber()  throws  Exception{
        return   new Result("200","success",null,dataStatisticsService.selectByOrderNumber());

    }

}
